<?php
include_once 'inc/global.php';
include 'inc/conn.php';

$content = '';

$companyname = $_POST['companyname'];
$address1 = $_POST['address1'];
$address2 = $_POST['address2'];
$region = $_POST['region'];
$city = $_POST['city'];
$phone1 = $_POST['phone1'];
$phone2 = $_POST['phone2'];
$fax1 = $_POST['fax1'];
$fax2 = $_POST['fax2'];
$email = $_POST['email'];

$sql = "update ats_company set companyname='$companyname',address1='$address1',address2='$address2',region='$region',city='$city',phone1='$phone1',phone2='$phone2',fax1='$fax2',fax2='$fax2',email='$email'";

$result = @mysql_query($sql)
    or die('query error: '.$sql);

echo "Data have been saved";
?>
